#ifndef __CoefVector_h
#define __CoefVector_h

#include  "vector.h"

/*----------------------------------------------------------*/

class CoefVector : public Vector
{
protected:
  int _kp;

public:
  CoefVector(int degre) : Vector(), _kp(degre+1) {}
  void reSize(size_t n)
  {
    Vector::reSize(_kp*n);
  }
  int degre() const
  {
    return _kp-1;
  }
  double operator()(int node, int k) const
  {
    return ( *this )[_kp*node+k];
  }
  double& operator()(int node, int k)
  {
    return ( *this )[_kp*node+k];
  }
};

#endif
